package com.huiyi.pan.server.modules.user.mapper;

import com.huiyi.pan.server.modules.user.context.QueryUserSearchHistoryContext;
import com.huiyi.pan.server.modules.user.entity.HPanUserSearchHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huiyi.pan.server.modules.user.vo.UserSearchHistoryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author robin
* @description 针对表【h_pan_user_search_history(用户搜索历史表)】的数据库操作Mapper
* @createDate 2025-01-30 22:59:42
* @Entity com.huiyi.pan.server.modules.user.entity.HPanUserSearchHistory
*/
public interface HPanUserSearchHistoryMapper extends BaseMapper<HPanUserSearchHistory> {

    /**
     * 查询用户的最近十条搜索历史记录
     *
     * @param context
     * @return
     */
    List<UserSearchHistoryVO> selectUserSearchHistories(@Param("param") QueryUserSearchHistoryContext context);

}




